<template>
  <div id="app">
    <el-container>
      <!-- 头部 -->
      <el-header>
        <GlobalHeader />
      </el-header>
      <!-- 内容区 -->
      <el-main>
        <router-view></router-view>
      </el-main>
      <!-- 底部 -->
      <el-footer>
        <GlobalFooter />
      </el-footer>
    </el-container>
  </div>
</template>
<script>
import GlobalHeader from './components/GlobalHeader.vue'
import GlobalFooter from './components/GlobalFooter.vue'
export default {
  components: {
    GlobalHeader,
    GlobalFooter
  }
}
</script>
<style lang="scss">
#app {
  background-color: #f1f3f5;

  .el-container {
    height: 100vh;

    .el-header {
      padding: 0;
    }

    .el-main {
      width: 80%;
      margin: 0 auto;
      background-color: #fff;
    }
  }
}
</style>
